package pe.edu.upc.dreamteam.service.jms;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Service;

import pe.edu.upc.dreamteam.bean.Reserva;

@Service
public class JmsReservasImpl implements JmsReservas {

	@Autowired
	JmsTemplate jsmTemplate;
	
	public void reservar(Reserva reserva){
		jsmTemplate.convertAndSend(reserva);
	}
	
}
